package com.example.demo.modules.controller;

import com.example.demo.modules.entity.Shop;
import com.example.demo.modules.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by asus on 2018/3/26.
 */
@RestController
public class Test {
    @Autowired
    private ShopService shopService;

    @RequestMapping("/hello")
    public String say(){
        System.out.println("hell------------------------>");
        Shop shop = shopService.findById("$002UQC");
        System.out.println(shop.toString());
        return "hello ooo";
    }
}
